﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TanHungViet.Web.Models.Product>" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="TanHungViet.Helper"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=ViewData["PageTitle"]%> - PHẦN MỀM XÂY DỰNG – TÂN HƯNG VIỆT – 0835.125.795
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% CultureInfo ci = new CultureInfo(Session["CultureInfo"].ToString());%>
    
    <div class="title-mainright">
	    <h2 class="text1"><%= Model.ProductName %></h2>
    </div>
	<div class="content">
		<div class="top-box2"><img src='<%=Url.Content("~/Content/images/top-box2.jpg")%>'/> </div>		
			<div class="center-box2">			    
			        <div style="float:left;width: 280px; ">
			            <img src='<%= Model.ProductImage!=null 
			                ? Url.Content(Constant.ImageProductPath + Model.ProductImage): ""%>' width="270px"/>
		            </div>
		            <br />
		            <br />
		            <div style="float:left;width: 243px;">
		                <span style="color:#a95111;font-weight:bold;">
		                    <%= ResourceUtil.Instance.GetString("TenPhanMem", ci)%> :
		                </span>
		                 <%= Model.ProductName %>
		                <br />
		                <span style="color:#a95111;font-weight:bold;">
		                    <%= ResourceUtil.Instance.GetString("PhienBan", ci)%> :
		                </span> 
		                <%= Model.ProductVersion %>
		                <br />
                                                   
		                <span style="color:#a95111;font-weight:bold;">
		                    <%= ResourceUtil.Instance.GetString("TinhNang", ci)%> :</span><%=Model.ProductDescrip %>
		                <br />
		                <span style="color:#a95111;font-weight:bold;">
		                    <%= ResourceUtil.Instance.GetString("DonGia", ci)%> :</span> 
		                    <% decimal price = Model.ProductPrice ?? 0; %>
		                    <%= price.ToString("##,#", new CultureInfo("vi-Vn")) %>
                        <br />
		                <br />
		                
		                <%--Nut bam mua hang--%>
		                <a href='<%= Url.Action("DatMua", new { code = Model.ProductID }) %>'>
		                    <img src='<%=Url.Content("~/Content/images/bg_sales.gif")%>'/>
		                </a>
		                &nbsp; <% if(string.IsNullOrEmpty(Model.DownloadLink))
                                Model.DownloadLink="#"; %>
		                <a href='<%= Model.DownloadLink %>' title="Dùng thử">
		                    <img src='<%=Url.Content("~/Content/images/download24x24.gif")%>' alt="Dùng Thử"/>
		                </a> 
		            </div>  
    		        <br />
                    <br />
                    <div class="clear">
                    </div>
                    <div style="width: 510px;margin-left:10px"><%= Model.ProductDetail %></div>
               
			</div>            	
	</div> 

</asp:Content>

